import request from '@/utils/request'

// 查询AI聊天列表
export function listAiChat(query) {
  return request({
    url: '/AI/AiChat/list',
    method: 'get',
    params: query
  })
}

// 查询AI聊天详细
export function getAiChat(id) {
  return request({
    url: '/AI/AiChat/' + id,
    method: 'get'
  })
}

// 新增AI聊天
export function addAiChat(data) {
  return request({
    url: '/AI/AiChat',
    method: 'post',
    data: data
  })
}

// 修改AI聊天
export function updateAiChat(data) {
  return request({
    url: '/AI/AiChat',
    method: 'put',
    data: data
  })
}

// 删除AI聊天
export function delAiChat(id) {
  return request({
    url: '/AI/AiChat/' + id,
    method: 'delete'
  })
}
